package com.sf.dlb.jpa.repository;

import com.sf.dlb.jpa.model.UserGradeInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;


/**
 * 等级信息表 Repository
 *
 * Created by jing.tan on 2018/5/21.
 */
@Repository
public interface UserGradeRepository extends JpaRepository<UserGradeInfo, Long> {
    /**
     * 根据查询-等级
     * @param grade
     * @param delflag
     * @return
     */
    UserGradeInfo findByGradeAndDelFlag(String grade, String delflag);
    /**
     * 根据id查询
     * @param id
     * @return
     */
    UserGradeInfo findById(Long id);
}